<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script type="text/javascript">
			var lastLog;
			console.oldLog = console.log;
			console.log = function(str) {
				console.oldLog(str);
				lastLog = str;
			}
			console.log("Hello, Neo");
			document.write(lastLog);
		</script>
	</body>

</html>